﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Smart.Common
{
    public partial class xfmBase : DevExpress.XtraEditors.XtraForm
    {
        protected bool Simple = true;
        public event ButtonClickEventHander AddClick;
        public event ButtonClickEventHander Expanded;
        public event SendIDEventHander SendID;
        public xfmBase()
        {
            InitializeComponent();
        }

        protected void RaiseAddClickEventHander()
        {
            if (this.AddClick != null)
            {
                this.AddClick(this);
            }
        }

        protected void RaiseExpandedEventHander()
        {
            if (this.Expanded != null)
            {
                this.Expanded(this);
            }
        }

        protected void RaiseSendIDEventHander(string ID)
        {
            if (this.SendID != null)
            {
                this.SendID(ID);
            }
        }

        public delegate void SendIDEventHander(string ID);
    }
}